package com.artxis.cms.business {
	
	import com.adobe.cairngorm.business.ServiceLocator;
	
	import mx.rpc.IResponder;
	
	import com.artxis.cms.vo.LoginVO;
	
	public class LoginDelegate {
	
		private var responder:IResponder;
		private var service:Object;
		
		public function LoginDelegate( responder:IResponder ) {
			
			this.responder = responder;
			this.service = ServiceLocator.getInstance().getRemoteObject("loginService");
			
		}
		
		public function login( loginAttempt:LoginVO ):void {
			
			var call:Object = service.login( loginAttempt );
			call.addResponder( responder );
			
		}
	
	}
}